# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=tree-sitter-scheme
pkgver=0.23.0
pkgrel=0
pkgdesc="Scheme grammar for tree-sitter"
url="https://github.com/6cdh/tree-sitter-scheme"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
subpackages="$pkgname-doc"
install_if="tree-sitter-grammars"
source="$pkgname-$pkgver.tar.gz::https://github.com/6cdh/tree-sitter-scheme/archive/refs/tags/v$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
7f5a62eeadaeffb010347e637cdcee8418b5dce1a86d011930305b3173a4f064856f3e2f03140b9869cd6dda6f9f04171538b1effed0274a9fa1d439730498e6  tree-sitter-scheme-0.23.0.tar.gz
"
